var prefix = ctx + "system/mould"

$(function() {

});

//下载模板
function downLoad(flag) {
    window.location.href=prefix + "/downLoad/" + flag;
}
//显示上传模板
function showUpLoad(){
    $("#upload").toggle();
}

function upLoad(flag){
    var form = document.getElementById('upload');
   form.submit();
    parent.layer.msg("导入成功,正在刷新数据请稍后……",{icon:1,time: 500,shade: [0.1,'#fff']},function(){
        $.parentReload();
    });

}
